#include "utility.h"

int partr(uint32_t color) {
    return (color & 0xFF000000) >> 24;
}

int partg(uint32_t color) {
    return (color & 0x00FF0000) >> 16;
}

int partb(uint32_t color) {
    return (color & 0x0000FF00) >> 8;
}

int parta(uint32_t color) {
    return (color & 0x000000FF) >> 0;
}
